package com.example.design.observer.rate.concretesubject;

import com.example.design.observer.rate.observer.Company;
import com.example.design.observer.rate.subject.Rate;

/**
 * @Description 人民币汇率-具体目标
 * @ClassName RMBRate
 * @Author Yumuhui
 * @Date 2020/5/16 0:30
 * @Version 1.0.0
 */
public class RMBRate extends Rate {
    @Override
    public void change(double rate) {
        for (Company observer: this.observers) {
            observer.response(rate);
        }
    }
}
